Integrand size = 24, antiderivative size = 35 \[ \int \frac {\sqrt {a^2+2 a b x+b^2 x^2}}{x^3} \, dx=-\frac {(a+b x) \sqrt {a^2+2 a b x+b^2 x^2}}{2 a x^2} \]
[Out]
Time = 0.01 (sec) , antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {660, 37} \[ \int \frac {\sqrt {a^2+2 a b x+b^2 x^2}}{x^3} \, dx=-\frac {(a+b x) \sqrt {a^2+2 a b x+b^2 x^2}}{2 a x^2} \]
[In]
[Out]
Rule 37
Rule 660
Rubi steps \begin{align*} \text {integral}& = \frac {\sqrt {a^2+2 a b x+b^2 x^2} \int \frac {a b+b^2 x}{x^3} \, dx}{a b+b^2 x} \\ & = -\frac {(a+b x) \sqrt {a^2+2 a b x+b^2 x^2}}{2 a x^2} \\ \end{align*}
Time = 0.16 (sec) , antiderivative size = 31, normalized size of antiderivative = 0.89 \[ \int \frac {\sqrt {a^2+2 a b x+b^2 x^2}}{x^3} \, dx=-\frac {\sqrt {(a+b x)^2} (a+2 b x)}{2 x^2 (a+b x)} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 2.
Time = 0.26 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.51
method | result | size |
default | \(-\frac {\operatorname {csgn}\left (b x +a \right ) \left (2 b x +a \right )}{2 x^{2}}\) | \(18\) |
gosper | \(-\frac {\left (2 b x +a \right ) \sqrt {\left (b x +a \right )^{2}}}{2 x^{2} \left (b x +a \right )}\) | \(28\) |
risch | \(\frac {\left (-b x -\frac {a}{2}\right ) \sqrt {\left (b x +a \right )^{2}}}{x^{2} \left (b x +a \right )}\) | \(29\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 11, normalized size of antiderivative = 0.31 \[ \int \frac {\sqrt {a^2+2 a b x+b^2 x^2}}{x^3} \, dx=-\frac {2 \, b x + a}{2 \, x^{2}} \]
[In]
[Out]
\[ \int \frac {\sqrt {a^2+2 a b x+b^2 x^2}}{x^3} \, dx=\int \frac {\sqrt {\left (a + b x\right )^{2}}}{x^{3}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 80 vs. \(2 (22) = 44\).
Time = 0.19 (sec) , antiderivative size = 80, normalized size of antiderivative = 2.29 \[ \int \frac {\sqrt {a^2+2 a b x+b^2 x^2}}{x^3} \, dx=\frac {\sqrt {b^{2} x^{2} + 2 \, a b x + a^{2}} b^{2}}{2 \, a^{2}} + \frac {\sqrt {b^{2} x^{2} + 2 \, a b x + a^{2}} b}{2 \, a x} - \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}}}{2 \, a^{2} x^{2}} \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 39, normalized size of antiderivative = 1.11 \[ \int \frac {\sqrt {a^2+2 a b x+b^2 x^2}}{x^3} \, dx=-\frac {b^{2} \mathrm {sgn}\left (b x + a\right )}{2 \, a} - \frac {2 \, b x \mathrm {sgn}\left (b x + a\right ) + a \mathrm {sgn}\left (b x + a\right )}{2 \, x^{2}} \]
[In]
[Out]
Time = 9.18 (sec) , antiderivative size = 27, normalized size of antiderivative = 0.77 \[ \int \frac {\sqrt {a^2+2 a b x+b^2 x^2}}{x^3} \, dx=-\frac {\sqrt {{\left (a+b\,x\right )}^2}\,\left (a+2\,b\,x\right )}{2\,x^2\,\left (a+b\,x\right )} \]
[In]
[Out]